import request from '@/utils/request'

// 查询职级分页列表
export function getPageList(query) {
  return request({
    url: '/grade/getPageList',
    method: 'get',
    params: query
  })
}
// 查询职级详情
export function getDetail(query) {
  return request({
    url: '/grade/getDetail',
    method: 'get',
    params:query
  })
}

// 新增职级
export function add(data) {
  return request({
    url: '/grade/add',
    method: 'post',
    data: data
  })
}

// 修改职级
export function edit(data) {
  return request({
    url: '/grade/edit',
    method: 'put',
    data: data
  })
}

// 删除职级
export function del(ids) {
  return request({
    url: '/grade/del',
    method: 'delete',
    data:ids
  })
}

// 根据岗位系统编码查询职级下拉数据
export function getGradeSelectItemsByPost(query) {
  return request({
    url: '/grade/getGradeSelectItemsByPost',
    method: 'get',
    params:query
  })
}
// 查询所有职级下拉数据
export function getAllGradeSelectItems(query) {
  return request({
    url: '/grade/getAllGradeSelectItems',
    method: 'get',
    params:query
  })
}
